package com.mark.controller;


import com.mark.entity.school.USubject;
import com.mark.service.USubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * (USubject)表控制层
 *
 * @author Deng PengFei
 * @since 2021-10-27 11:17:44
 */
@CrossOrigin
@RestController
@RequestMapping("subject")
public class USubjectController {

    @Autowired
    private USubjectService uSubjectService;


    /**
     * 获取科目列表
     *
     * @return 对象列表
     */
    @GetMapping("getSubList")
    public List<USubject> getSubList() {
        return this.uSubjectService.getSubList();
    }


}